import QtQuick 1.1
import com.nokia.symbian 1.1
import PictureItem 1.0

SelectionDialog {
    id: root

    signal storageChanged(int storage)

    Component.onCompleted: {

        storageModel.append({modelData:qsTr("Internal memory"),
                              storageType: PictureItem.StorageInternal})
        storageModel.append({modelData:qsTr("Memory card"),
                              storageType: PictureItem.StorageRemovable})
    }

    titleText: qsTr("Where save images")

    model:ListModel{
        id: storageModel
    }

    onSelectedIndexChanged: {
        root.storageChanged(model.get(selectedIndex).storageType)
    }

}

